import request from '@/utils/request'
export function getAllRealease() {
    return request({
        url: '/trade/release/getRelease',
        method: 'get',
    })
}

export function getTimeSlotInfo(release_id) {
    return request({
        url: '/info/user/timeSlot',
        method: 'get',
        params: { release_id: release_id }
    })
}

export function getAllTrade(value) {
    return request({
        url: '/trade/tradeInfo/',
        method: 'get',
        params:{default_id:value}
    })
}

export function getTradeDetail(trade_id) {
    return request({
        url: '/trade/tradeInfo/getTradeDetail',
        method: 'get',
        params: { trade_id: trade_id }
    })
}